{{useCss "/app-pages/css/user/collection.scss"}}
<div class="collection">
    <div class="nav">
        <div class="nav-li focus">收藏店铺</div>
        <href to="/user/collection2.html">
            <div class="nav-li">收藏商品</div>
        </href>
    </div>
    <hr/>
    <div class="collection-box">
        {{#each $Cache.user.collectBus_with_goods_info}}
        <div class="storeitem">
            <div class="storeinfo">
                <a style="color:silver" target="_blank" href="{{url}}" title="点击访问{{info.title}}">
                    <div class="logo">
                        <img bind-src="{{info.logo_url&&(info.logo_url+'?imageView/1/w/50/h/50')||'/images/logo.png'}}" />
                    </div>
                    <div class="storename">{{info.title}}</div>
                </a>
                <div>
                    <button event-click="{{'$Top.$Event.user.collection.remove_collect_bus'}}">取消收藏</button>
                </div>
            </div>
            <div class="storenew">
                <div class="newtitle">最新商品</div>
                <div class="box">
                    {{#each latest_goods_list}}
                    <collectiongoods href="{{url}}" goodsname="{{goods_name}}" src="{{preview_img_url}}?imageView/1/w/115/h/115" price="{{price}}"></collectiongoods>
                    {{/each}}
                </div>
            </div>
        </div>
        {{/each}}
    </div>
</div>
<xmp type="tag" name="collectiongoods">
    <div class="item">
        <a target="_blank" href="${href}">
            <img title="${goodsname}" bind-src="${src}" class="goodsimg" />
        </a>
        <div class="price">￥${price}</div>
    </div>
</xmp>
